GutterRendererText

Renders text in the gutter.

A GtkSourceGutterRendererText can be used to render text in a cell of [class@Gutter].

Constructors

this
this(GtkSourceGutterRendererText* gtkSourceGutterRendererText, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Create a new #GtkSourceGutterRendererText.

Members

Functions

getGutterRendererTextStruct
GtkSourceGutterRendererText* getGutterRendererTextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

measure
void measure(string text, int width, int height)

Measures the text provided using the pango layout used by the #GtkSourceGutterRendererText.

measureMarkup
void measureMarkup(string markup, int width, int height)

Measures the pango markup provided using the pango layout used by the #GtkSourceGutterRendererText.

setMarkup
void setMarkup(string markup, int length)
setText
void setText(string text, int length)

Static functions

getType
GType getType()

Variables

gtkSourceGutterRendererText
GtkSourceGutterRendererText* gtkSourceGutterRendererText;

the main Gtk struct

Inherited Members

From GutterRenderer

gtkSourceGutterRenderer
GtkSourceGutterRenderer* gtkSourceGutterRenderer;

the main Gtk struct

getGutterRendererStruct
GtkSourceGutterRenderer* getGutterRendererStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
activate
void activate(TextIter iter, GdkRectangle* area, uint button, GdkModifierType state, int nPresses)

Emits the [signal@GutterRenderer::activate] signal of the renderer. This is called from [class@Gutter] and should never have to be called manually.

alignCell
void alignCell(uint line, float width, float height, float x, float y)

Locates where to render content that is @width x @height based on the renderers alignment and padding.

getAlignmentMode
GtkSourceGutterRendererAlignmentMode getAlignmentMode()

Get the alignment mode.

getBuffer
Buffer getBuffer()

Gets the [class@Buffer] for which the gutter renderer is drawing.

getView
View getView()

Get the view associated to the gutter renderer

getXalign
float getXalign()

Gets the xalign property.

getXpad
int getXpad()

Gets the xpad property.

getYalign
float getYalign()

Gets the yalign property.

getYpad
int getYpad()

Gets the ypad property.

queryActivatable
bool queryActivatable(TextIter iter, GdkRectangle* area)

Get whether the renderer is activatable at the location provided. This is called from [class@Gutter] to determine whether a renderer is activatable using the mouse pointer.

setAlignmentMode
void setAlignmentMode(GtkSourceGutterRendererAlignmentMode mode)

Set the alignment mode. The alignment mode describes the manner in which the renderer is aligned (see [property@GutterRenderer:xalign] and [property@GutterRenderer:yalign]).

setXalign
void setXalign(float xalign)

Adjusts the xalign property.

setXpad
void setXpad(int xpad)

Adjusts the xpad property.

setYalign
void setYalign(float yalign)

Adjusts the yalign property.

setYpad
void setYpad(int ypad)

Adjusts the ypad property.

addOnActivate
gulong addOnActivate(void delegate(TextIter, GdkRectangle*, uint, GdkModifierType, int, GutterRenderer) dlg, ConnectFlags connectFlags)

The signal is emitted when the renderer is activated.

addOnQueryActivatable
gulong addOnQueryActivatable(bool delegate(TextIter, GdkRectangle*, GutterRenderer) dlg, ConnectFlags connectFlags)

The signal is emitted when the renderer can possibly be activated.

addOnQueryData
gulong addOnQueryData(void delegate(ObjectG, uint, GutterRenderer) dlg, ConnectFlags connectFlags)

Meta